package cn.geminis.warehouse.service.inventory.entity;

import cn.geminis.warehouse.service.basic.entity.Warehouse;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;

@Embeddable
@Getter
@Setter
public class Position {

    /**
     * 仓库
     */
    @ManyToOne
    private Warehouse warehouse;

    /**
     * 货架行
     */
    @Column
    private int positionX;

    /**
     * 货架列
     */
    @Column
    private int positionY;

    /**
     * 货架层
     */
    @Column
    private int positionZ;

}
